<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/16
 * Time: 14:18
 */

namespace app\common\model;


use think\Model;

class AuthRule extends Model
{
    public function lists()
    {
        $list = $this->order('id ASC')->select()->toArray();
        $res  = list_to_tree($list,'id','upid');
        return $res;
    }
}